package com.xh.service;
import com.xh.dao.UserDao;

//servlet service
public class UserServiceImpl implements UserService{

    //解耦
    private UserDao userDao;
    public void deleteUser(Integer id) {
        System.out.println("delete User in Service");
        userDao.deleteUser(id);
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
